import request from '@/utils/request'

// 获取列表
export function productGetList(pd) {
    return request({
        url: '/wms/product/getList',
        method: 'get',
        params: pd
    })
}

// 获取列表
export function productGetPictureList(pd) {
    return request({
        url: '/wms/product/getPictureList',
        method: 'get',
        params: pd
    })
}

// 新增
export function productAdd(data) {
    return request({
        url: '/wms/product',
        method: 'post',
        data: data
    })
}

// 修改
export function productEdit(pd) {
    return request({
        url: '/wms/product',
        method: 'put',
        data: pd
    })
}

// 删除参数配置
export function productDel(id) {
    return request({
        url: '/wms/product/id/' + id,
        method: 'delete'
    })
}